﻿<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <list>
                <value>file:${oa_application.config}/jdbc.properties</value>
                <!-- 用于注入的主要配置文件，包括eas的配置，以后只需要修改此文件就可以 -->
                <value>file:${oa_application.config}/firstframe.properties</value>
                <!-- 注册码文件 -->
                <value>file:${oa_application.config}/license.properties</value>
                <!-- eas集成的一些配置，不需要再修改多个配置文件 -->
                <value>file:${oa_application.config}/easconfig.properties</value>
                <!-- k3集成的一些配置 -->
                <value>file:${oa_application.config}/k3config.properties</value>
                <!--公文交换传输接口webservice的url配置                -->
                 <value>file:${oa_application.config}/gwjhconfig.properties</value>
                <!-- 项目扩展参数 -->
                <value>file:${oa_application.config}/extend/config.properties</value>

            </list>
        </property>
    </bean>

    <!-- i18n Resource文件bundles -->
    <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
        <property name="basenames">
            <list>
                <value>i18n/messages</value>
                <value>i18n/errors</value>
                <value>i18n/bulletin</value>
                <value>i18n/address</value>
                <value>i18n/archive</value>
                <value>i18n/archive2</value>
                <value>i18n/books</value>
                <value>i18n/calendar</value>
                <value>i18n/docex</value>
                <value>i18n/dtree</value>
                <value>i18n/email2</value>
                <value>i18n/forum</value>
                <value>i18n/goods</value>
                <value>i18n/home</value>
                <value>i18n/knowledge</value>
                <value>i18n/meeting</value>
                <value>i18n/message</value>
                <value>i18n/news</value>
                <value>i18n/security</value>
                <value>i18n/setting</value>
                <value>i18n/workflow</value>
                <value>i18n/checkwork</value>
                <value>i18n/emp</value>
                <value>i18n/workTask</value>
                <value>i18n/common</value>
                <value>i18n/cars</value>
                <value>i18n/ballot</value>
                <value>i18n/fileman</value>
                <value>i18n/supply</value>
                <value>i18n/manager</value>
                <value>i18n/controller</value>
                <value>i18n/js</value>
                <value>i18n/car2</value>
                <value>i18n/validator</value>
                <value>i18n/basedata</value>
                <value>i18n/portal</value>
                <value>i18n/task</value>
                <value>i18n/plan</value>
                <value>i18n/worklog</value>
                <value>i18n/calendar2</value>
                <value>i18n/gwjh</value>
                <value>i18n/linktree</value>
                <value>i18n/systemMenu</value>
                <value>i18n/systemModule</value>
                <value>i18n/systemPerm</value>
                <value>i18n/portlet</value>
                <value>i18n/loge</value>
                <value>i18n/inspect</value>
                <value>i18n/integrat</value>
                <value>i18n/mobile</value><!-- 移动应用by 2011-08-19 sunyiping -->
                <!-- 项目的扩展，新模块的国际化都加到此文件中 -->
                <value>i18n/extend</value>
                <!--R110303-001,雷德祥，2011-05-11 首页一级标签的国际化  -->
                <value>i18n/systemLabel</value>
                <value>i18n/integrat</value>
				 <!-- 印章管理 -->
				<value>i18n/electronicSignature</value>
				 <!-- 团队协作 -->
				<value>i18n/teamwork</value>
		      </list>
        </property>
    </bean>

    <!-- EhCache Manager -->
    <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
		<property name="configLocation">
    		<value>file:${oa_application.config}/conf/ehcache.xml</value>
		</property>
    </bean>

    <import resource="file:${oa_application.config}/context/product/applicationContext.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-db.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-validator.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-plugins.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-address.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-bulletin.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-calendar.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-docex.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-email2.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-forum.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-knowledge.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-meeting.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-message.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-news.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-security.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-workflow.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-links.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-cars.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-books.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-goods.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-archive2.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-checkwork.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-ballot.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-emp.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-workTask.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-fileman.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-gwjh.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-pl.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-supply.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-note.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-worklog.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-task.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-plan.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-car2.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-linktree.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-portal.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-loge.xml"/>
	<import resource="file:${oa_application.config}/extend/applicationContext.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-portlet.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-inspect.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-integration.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-compass.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-webim.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-teamwork.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-common.xml"/>
	
	
	<!-- DMP: PT052921 RMP: R110713-0209 移动开发 -->
	<!-- 6.2不支持移动二期 -->
	<!-- 
	<import resource="file:${oa_application.config}/context/applicationContext-jersey.xml"/>
	-->
	<import resource="file:${oa_application.config}/context/applicationContext-mobile.xml"/>
	
	<!-- PT054392 R110816-0395 spring启动时注入ApplicationContextUtil对象以便普通对象能够方便获取ApplicationContext及bean-->
	<bean id="applicationContextUtil" class="org.springside.core.commons.ApplicationContextUtil" singleton="true"/>
	
	<import resource="file:${oa_application.config}/context/applicationContext-fileconvert.xml"/>
	<import resource="file:${oa_application.config}/context/applicationContext-integration.xml"/>
	<!--add for 集成全文检索 by binck_wang --> 
	<import resource="file:${oa_application.config}/cn/firstsoft/firstframe/plugins/compass/applicationContext-compassConfig.xml"/>
	
	<!-- linlian 2012-4-5 提升性能，提供公共缓存类-->
	<import resource="file:${oa_application.config}/cn/firstsoft/firstframe/plugins/cache/applicationContext-cache.xml"/>
	
</beans>

